﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/jquery.tablesorter/blue/style.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/Scripts/jquery.tablesorter/addons/pager/jquery.tablesorter.pager.css")" rel="stylesheet" type="text/css"/>
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>Mailias server</h1>
                <h2>@Server.MachineName - <span id="SMTPListenAddress"></span>:<span id="SMTPListenPort"></span></h2>
            </div>
            <div id="logindisplay">
                Welcome <strong>@User.Identity.Name</strong>!
            </div>
            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("All Messages", "Index", "Messages")</li>
                    <li>@Html.ActionLink("My Messages", "UserMessages", "Messages")</li>
                    <li>@Html.ActionLink("Mailias Settings", "Index", "MailiasSettings")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                </ul>
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
            Download your own copy of 
            <a href="http://mailias.codeplex.com" >Mailias.</a>
            Brought to you by <a href="http://www.codeplex.com" target="blank">CodePlex</a>
        </footer>
    </div>
    
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.1.min.js"></script>
    <script type="text/javascript">
        if (typeof jQuery == 'undefined') {
            document.write(unescape("%3Cscript src='@Url.Content("~/Scripts/jquery-1.5.1.min.js")' type='text/javascript'%3E%3C/script%3E"));
        }
    </script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="/Scripts/jquery.tablesorter/jquery.tablesorter.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.tablesorter/jquery.tablesorter.pager.js" type="text/javascript"></script>

    @RenderSection("javascript", false)


    <script type="text/javascript">
        $().ready(function layoutReady() {
            $("#SMTPListenAddress").load("/MailiasSettings/SMTPListenAddress");
            $("#SMTPListenPort").load("/MailiasSettings/SMTPListenPort");
            $(".tablesorter")
            .tablesorter({ widgets: ['zebra'] })
                .tablesorterPager({ container: $("#pager"), size: 5, positionFixed: false });
        });
    </script>
    
</body>
</html>
